package com.example.makerspace.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@TableName(value = "t_enterprise_data", autoResultMap = true)
@Document(indexName = "t_enterprise_data")
public class EnterpriseDataDO {
    @ExcelProperty("单位")
    @Field(name = "enterprise_name",type = FieldType.Text, analyzer="ik_max_word")
    private  String enterpriseName;
    @ExcelProperty("手机验证")
    @Field(name = "phone",type = FieldType.Text, analyzer="ik_max_word")
    private  String phone;
    @ExcelProperty("姓名")
    @Field(name = "name",type = FieldType.Text, analyzer="ik_max_word")
    private  String name;
    @ExcelProperty("职务")
    @Field(name = "duties",type = FieldType.Text, analyzer="ik_max_word")
    private  String duties;
}
